#ifndef TICTACTOE_H
#define TICTACTOE_H

#include <QDialog>
#include "states.h"

class TicTacToe : public QDialog
{
    Q_OBJECT

    States winner;
    States states[9];
    bool check(int i, int j, int k, States& s);

public:
    explicit TicTacToe(QWidget *parent = 0);

signals:

public slots:
    States getState(int row, int col);
    States getWinner();

private:
    States last_state;

};

#endif // TICTACTOE_H
